<h1><?php echo $article['TEX_TEXT'];?></h1>
<div class="alert alert-info">
	Артикул: <?php echo $article['ART_ARTICLE_NR'];?><br>
	Производитель: <?php echo $article['SUP_BRAND'];?>
</div>

<h4>Характеристики:</h4>
<table class="table table-bordered table-striped">
	<?php foreach($article['criteria'] as $criteria):?>
	<tr>
		<td><?php echo $criteria['TEX_TEXT']?></td>
		<td><?php echo $criteria['ACR_VALUE']?></td>
	</tr>
	<?php endforeach;?>
</table>

<h4>Цены:</h4>
<?php echo CHtml::beginForm(); ?>
<table class="table table-bordered table-striped">
	<?php foreach($article['prices'] as $prices):?>
	<tr>
		<td><?php echo $prices['PTP_NAME']?></td>
		<td>
			<?php echo CHtml::textField('Prices['.$prices['PTP_ID'].'][VALUE]', $prices['VALUE']); ?>
			<?php echo CHtml::hiddenField('Prices['.$prices['PTP_ID'].'][PRI_CUR_ID]', 0); ?>
			<?php echo CHtml::hiddenField('Prices['.$prices['PTP_ID'].'][PRI_PTP_ID]', $prices['PTP_ID']); ?>
			<?php echo CHtml::hiddenField('Prices['.$prices['PTP_ID'].'][PRI_ART_ID]', $article['ART_ID']); ?>
			RUB
		</td>
	</tr>
	<?php endforeach;?>
</table>
<?php echo CHtml::submitButton('Изменить цены'); ?>
<?php echo CHtml::endForm(); ?>